
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面-X-admin2.2</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="stylesheet" href="HouTaiCss/css/font.css">
<link rel="stylesheet" href="HouTaiCss/css/xadmin.css">
<script src="HouTaiCss/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="HouTaiCss/js/xadmin.js"></script>
<!-- 图表的样式 -->
<script type="text/javascript" src="sources/jscharts.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-body ">
						<blockquote class="layui-elem-quote">
							欢迎管理员： <span class="x-red" id="logInfo">test</span>
						</blockquote>
					</div>
				</div>
			</div>
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header">数据统计</div>
					<div class="layui-card-body ">
						<ul
							class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
							<li class="layui-col-md2 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									<h3>车位总数</h3>
									<p>
										<cite>200</cite>
									</p>
							</a></li>
							<li class="layui-col-md2 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									<h3>会员总车位</h3>
									<p>
										<cite>100</cite>
									</p>
							</a></li>
							<li class="layui-col-md2 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									<h3>剩余会员车位</h3>
									<p>
										<cite>${vip}</cite>
									</p>
							</a></li>
							<li class="layui-col-md2 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									<h3>普通总车位</h3>
									<p>
										<cite>100</cite>
									</p>
							</a></li>
							<li class="layui-col-md2 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									<h3>普通剩余车位</h3>
									<p>
										<cite>${putong}</cite>
									</p>
							</a></li>
						</ul>
					</div>
				</div>
			</div>
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header">数据分析 | 总营收：${all}元</div>
					<div class="layui-card-body ">
						<ul
							class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
							<li class="layui-col-md6 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									
									<div id="graph" class="layui-col-md6">Loading graph...</div>
							</a></li>
							<li class="layui-col-md6 layui-col-xs6"><a
								href="javascript:;" class="x-admin-backlog-body">
									
									<div id="graphpie">Loading graph...</div>
							</a></li>
							
						</ul>
						
					</div>
				</div>
			</div>
		</div>


	</div>
	</div>
	</div>
	<script type="text/javascript">
		var myData = new Array([ '一月', ${listt.get(0)} ], [ '二月', ${listt.get(1)} ], [ '三月', ${listt.get(2)} ], [
				'四月', ${listt.get(3)} ], [ '五月', ${listt.get(4)} ], [ '六月', ${listt.get(5)} ], [ '七月', ${listt.get(6)} ], [ '八月',
					${listt.get(7)} ], [ '九月', ${listt.get(8)} ], [ '十月',${listt.get(9)} ], [ '十一月', ${listt.get(10)} ], [ '十二月', ${listt.get(11)} ]);
		var colors = [ '#AF0202', '#EC7A00', '#FCD200','#AF0202', '#EC7A00', '#FCD200','#AF0202', '#EC7A00', '#FCD200','#AF0202', '#EC7A00', '#FCD200'  ];
		var myChart = new JSChart('graph', 'bar');
		myChart.setDataArray(myData);
		myChart.colorizeBars(colors);
		myChart.setTitle('每月收入总额');
		myChart.setTitleColor('#8E8E8E');
		myChart.setAxisNameX('');
		myChart.setAxisNameY('元');
		myChart.setAxisColor('#C4C4C4');
		myChart.setAxisNameFontSize(16);
		myChart.setAxisNameColor('#999');
		myChart.setAxisValuesColor('#7E7E7E');
		myChart.setBarValuesColor('#7E7E7E');
		myChart.setAxisPaddingTop(60);
		myChart.setAxisPaddingRight(100);
		myChart.setAxisPaddingLeft(60);
		myChart.setAxisPaddingBottom(40);
		myChart.setTextPaddingLeft(70);
		myChart.setTitleFontSize(11);
		myChart.setBarBorderWidth(1);
		myChart.setBarBorderColor('#C4C4C4');
		myChart.setBarSpacingRatio(50);
		myChart.setGrid(false);
		myChart.setSize(600, 321);
		/* myChart.setBackgroundImage('sources/chart_bg.jpg'); */
		myChart.draw();
	</script>
	<script type="text/javascript">
	var myData = new Array(['存款收入', ${ck}], ['车位租赁收入', ${rent}], ['临时停车收入', ${temp}]);
	var colors = ['#C40000', '#750303', '#F9ECA2'];
	var myChart = new JSChart('graphpie', 'pie');
	myChart.setDataArray(myData);
	myChart.colorizePie(colors);
	myChart.setTitle('今日收入分析');
	myChart.setTitleColor('#8E8E8E');
	myChart.setTitleFontSize(11);
	myChart.setTextPaddingTop(30);
	myChart.setSize(616, 321);
	myChart.setPiePosition(308, 170);
	myChart.setPieRadius(85);
	myChart.setPieUnitsColor('#555');
	
	myChart.draw();
</script>
	
	<script language="javascript">
		function getCurDate() {
			var d = new Date();
			var week;
			switch (d.getDay()) {
			case 1:
				week = "星期一";
				break;
			case 2:
				week = "星期二";
				break;
			case 3:
				week = "星期三";
				break;
			case 4:
				week = "星期四";
				break;
			case 5:
				week = "星期五";
				break;
			case 6:
				week = "星期六";
				break;
			default:
				week = "星期天";
			}
			var years = d.getFullYear();
			var month = add_zero(d.getMonth() + 1);
			var days = add_zero(d.getDate());
			var hours = add_zero(d.getHours());
			var minutes = add_zero(d.getMinutes());
			var seconds = add_zero(d.getSeconds());
			var ndate = years + "年" + month + "月" + days + "日 " + hours + ":"
					+ minutes + ":" + seconds + " " + week;
			var divT = document.getElementById("logInfo");
			divT.innerHTML = ndate;
		}

		function add_zero(temp) {
			if (temp < 10)
				return "0" + temp;
			else
				return temp;
		}
		setInterval("getCurDate()", 100);
	</script>

</body>
</html>